// 左侧菜单状态值
import { TOGGLE_SIDEBAR } from "../mutation-types"
import { SidebarState } from "../modulestype/app"
const app = {
    state: {
        sidebar: true,//菜单开合状态
    },
    mutations: {
        // 修改状态
        [TOGGLE_SIDEBAR](state: SidebarState) {

            state.sidebar = !state.sidebar;

        }
    }
}

// 输出
export default app;